package cn.com.mr01.lianxi.mr_lianxi_10;

import java.io.IOException;
import java.util.Iterator;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

/**
 * 拿到的数据<"1001 \t 2001",[1...]>
 * 
 * 输出的数据<"1001 \t 2001", >
 * 
 * @author yingfing
 * @date 2020年11月19日 @time 下午3:25:46
 */
public class IntSumReducer extends
		Reducer<Text, IntWritable, Text, NullWritable> {

	@Override
	protected void reduce(Text key, Iterable<IntWritable> values,
			Context context) throws IOException, InterruptedException {

		context.write(key, NullWritable.get());
	}
}
